<div th:fragment="frag (onevar,twovar)" xmlns:th="http://www.w3.org/1999/xhtml">
    <p th:text="${onevar} + ' - ' + ${twovar}">...</p>
</div>